package danny.hoi.service;

import com.github.pagehelper.PageInfo;
import danny.hoi.pojo.TbArticle;

import java.util.List;

public interface ArticleService {
    /**
     * 添加
     * @param article
     */
    void add(TbArticle article);

    void update(TbArticle article);

    void delete(Integer id);

    TbArticle findOne(Integer id);

    List<TbArticle> findAll();


    PageInfo<TbArticle> search(Integer pageNum, Integer pageSize, TbArticle article);
}
